<%@ page import="com.zjitc.utils.Utils" %>
<%@ page import="java.util.LinkedList" %>
<%--
  Created by IntelliJ IDEA.
  User:
  Date: 2017/11/16
  Time: 14:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!--
       商品浏览记录:
-->
<div style="width:1390px;margin:0 auto; padding: 0 9px;border: 1px solid #ddd;border-top: 2px solid #999;height: 246px;">

    <h4 style="width: 50%;float: left;" >浏览记录</h4>
    <div style="width: 50%;float: right;text-align: right;"></div>
    <div style="clear: both;"></div>

    <div style="overflow: hidden;">
        <ul style="list-style: none;">

                <c:forEach items="${sessionScope.history.products}" var="item">
                        <li style="width: 150px;height: 216px;float: left;margin: 0 8px 0 0;padding: 0 18px 15px;text-align: center;">
                            <a href="${pageContext.request.contextPath}/product/displaymsg?pid=${item.value.pid}">
                                <img src="${pageContext.request.contextPath}/${item.value.image}" width="130px" height="130px" >
                                <p class="text-center">${fn:substring(item.value.name, 0, 5)}..</p>
                            </a>
                        </li>
                </c:forEach>

        </ul>

    </div>
</div>
